home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Camelot / Camelot 105 (1991-02)(Swedish User Group of Amiga)(SE)(PD)[WB].zip / Camelot 105 (1991-02)(Swedish User Group of Amiga)(SE)(PD)[WB].adf / AmigaUUCP / dnews / defs.h < prev    next >
C/C++ Source or Header  |  1991-02-14  |  1KB  |  61 lines

  1.  
  2. /*
  3.  *  DEFS.H
  4.  */
  5.  
  6. #include <stdio.h>
  7. #include <stdlib.h>
  8. #include <string.h>
  9. #include <time.h>
  10. #include "config.h"
  11. #include "version.h"
  12.  
  13. #define arysize(ary)    (sizeof(ary)/sizeof((ary)[0]))
  14.  
  15. #define TMPBSIZE    2048
  16. #define FNHASHSIZE  64
  17. #define FNHASHMASK  (FNHASHSIZE-1)
  18.  
  19. #undef NULL
  20. #define NULL ((void *)0L)
  21.  
  22. #define CTRL(x) ((x) & 0x1F)
  23.  
  24. typedef struct Range {
  25.     struct Range   *Next;
  26.     short   SNo;
  27.     short   ENo;
  28. } Range;
  29.  
  30. typedef struct FNode {
  31.     struct FNode *Next;
  32.     long    MsgNo;
  33.     char    *Id;
  34. } FNode;
  35.  
  36. typedef struct NewsGroup {
  37.     struct NewsGroup *Next;
  38.     char    *Name;
  39.     short   Enabled;
  40.     short   Flags;
  41.     short   MaxNo;    /*  last article    */
  42.     short   CurNo;    /*  current article    */
  43.     short   PrevNo[32]; /*  previous articles    */
  44.     short   Unread;
  45.     Range   *RList;    /*  articles read    */
  46.     Range   *MList;    /*  articles marked    */
  47.     Range   *KList;    /*  articles killed    */
  48.     FNode   **IdBase;    /*  cached message IDs    */
  49.     FNode   **RefBase;    /*  cached References:    */
  50.     FNode   **SubBase;    /*  cached Subject:    */
  51.  
  52.     void    *DispFd;    /*  XXX display descriptor  */
  53. } NGroup;
  54.  
  55. #define GROUPF_REDISPLAY    0x0002
  56.  
  57. extern char TmpBuf[TMPBSIZE];
  58.  
  59. #include "dnews_protos.h"
  60.  
  61.